home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 January / maximum-cd-2001-01.iso / Hard Disk / Test-Run / Test-Run 210.exe / Control / Check.bat < prev    next >
Encoding:
DOS Batch File  |  1999-08-10  |  4.8 KB  |  127 lines

  1. @echo off
  2. echo.
  3. echo.
  4. echo.
  5. echo.
  6. echo.
  7. echo.
  8. echo                            ╔════════════════════╗
  9. echo                            ║   TEST-RUN by BB   ║
  10. echo                            ╚════════════════════╝
  11. echo.
  12.  
  13. if not exist c:\windows\command\nul goto :Nil Command
  14. if not %windir%==C:\WINDOWS goto :Not Right
  15. if not exist c:\windows\system.dat  goto :Not Right
  16. if not exist c:\windows\user.dat goto :Not Right
  17.  
  18. if not exist c:\windows\command\attrib.exe goto :filechek
  19. if not exist c:\windows\command\deltree.exe goto :filechek
  20. if not exist c:\windows\command\xcopy.exe goto :filechek
  21. if not exist c:\windows\command\start.exe goto :filechek
  22. if not exist c:\windows\command\choice.com goto :filechek
  23. if not exist c:\windows\regedit.exe goto :filechek
  24. if not exist c:\windows\notepad.exe goto :filechek
  25. if not exist c:\windows\write.exe goto :filechek
  26. goto :checkforTR
  27.  
  28. :filechek
  29. echo.
  30. echo.
  31. echo         ╔════════════════════════════════════════════════════════════╗
  32. echo         ║                *** INSTALLATION ALERT ***                  ║      
  33. echo         ║ Setup has detected that there are some missing files from  ║
  34. echo         ║ your windows installation. The Test-Run program relies on  ║
  35. echo         ║ those files to be able to operate safely, and it is vital  ║ 
  36. echo         ║ that they have been correctly installed with Windows. The  ║
  37. echo         ║ list of essential files used by Test-Run program is given  ║
  38. echo         ║ below. Installation has been aborted.  No change has been  ║ 
  39. echo         ║ made to your computer.                                     ║
  40. echo         ║ ┌────────────────────────────────────────────────────────┐ ║ 
  41. echo         ║ │    ONE OR MORE OF THE FILES LISTED BELOW IS MISSING!   │ ║
  42. echo         ║ │                                                        │ ║
  43. echo         ║ │ C:\WINDOWS\COMMAND\..ATTRIB.EXE, START.EXE, XCOPY.EXE,│ ║
  44. echo         ║ │                                DELTREE.EXE, CHOICE.COM.│ ║
  45. echo         ║ │ C:\WINDOWS\.......REGEDIT.EXE, NOTEPAD.EXE, WRITE.EXE.│ ║
  46. echo         ║ └────────────────────────────────────────────────────────┘ ║
  47. echo         ╚════════════════════════════════════════════════════════════╝
  48. echo.
  49. echo.
  50. echo.
  51. pause
  52. goto :exit
  53.  
  54.  
  55.  
  56.  
  57.  
  58. :checkforTR
  59. set -ok-all=1
  60. if not exist c:\windows\tr~winin.-ok set -ok-all=0
  61. if not exist c:\windows\tr~systm.-ok set -ok-all=0
  62. if not exist c:\windows\tr~user.-ok  set -ok-all=0
  63. if not exist c:\windows\tr~sysin.-ok set -ok-all=0
  64. if not exist c:\windows\tr~proin.-ok set -ok-all=0
  65. if not exist c:\tr~autox.-ok         set -ok-all=0
  66. if not exist c:\tr~confg.-ok         set -ok-all=0
  67. if not exist c:\tr~msdos.-ok         set -ok-all=0
  68.  
  69. set -oksome=0
  70. if exist c:\windows\tr~winin.-ok     set -oksome=1
  71. if exist c:\windows\tr~systm.-ok     set -oksome=1
  72. if exist c:\windows\tr~user.-ok      set -oksome=1
  73. if exist c:\windows\tr~sysin.-ok     set -oksome=1
  74. if exist c:\windows\tr~proin.-ok     set -oksome=1
  75. if exist c:\tr~autox.-ok             set -oksome=1
  76. if exist c:\tr~confg.-ok             set -oksome=1
  77. if exist c:\tr~msdos.-ok             set -oksome=1
  78.  
  79.  
  80. set cha-all=1
  81. if not exist c:\windows\tr~winin.cha set cha-all=0
  82. if not exist c:\windows\tr~systm.cha set cha-all=0
  83. if not exist c:\windows\tr~user.cha  set cha-all=0
  84. if not exist c:\windows\tr~sysin.cha set cha-all=0
  85. if not exist c:\windows\tr~proin.cha set cha-all=0
  86. if not exist c:\tr~autox.cha         set cha-all=0
  87. if not exist c:\tr~confg.cha         set cha-all=0
  88. if not exist c:\tr~msdos.cha         set cha-all=0
  89.  
  90. set chasome=0
  91. if exist c:\windows\tr~winin.cha     set chasome=1
  92. if exist c:\windows\tr~systm.cha     set chasome=1
  93. if exist c:\windows\tr~user.cha      set chasome=1
  94. if exist c:\windows\tr~sysin.cha     set chasome=1
  95. if exist c:\windows\tr~proin.cha     set chasome=1
  96. if exist c:\tr~autox.cha             set chasome=1
  97. if exist c:\tr~confg.cha             set chasome=1
  98. if exist c:\tr~msdos.cha             set chasome=1
  99.  
  100. if %-ok-all%==0 if %-oksome%==1 if %chasome%==1 start /max Alert1.bat
  101. if %-ok-all%==0 if %-oksome%==1 if %chasome%==1 goto :exit
  102. if %-ok-all%==1                 if %cha-all%==1 start /max Alert2.bat
  103. if %-ok-all%==1                 if %cha-all%==1 goto :exit
  104. if %-ok-all%==1                 if %chasome%==1 start /max Alert3.bat
  105. if %-ok-all%==1                 if %chasome%==1 goto :exit
  106. if %-ok-all%==0 if %-oksome%==0 if %chasome%==1 start /max Alert4.bat
  107. if %-ok-all%==0 if %-oksome%==0 if %chasome%==1 goto :exit
  108. if %-ok-all%==0 if %-oksome%==1                 start /max Alert5.bat
  109. if %-ok-all%==0 if %-oksome%==1                 goto :exit  
  110.  
  111. goto :welcome
  112.  
  113. :Nil Command
  114. cls
  115. NoCmd.bat
  116. goto :exit
  117.  
  118. :Not Right
  119. start /max Notright.bat
  120. goto :exit
  121.  
  122. :Welcome
  123. start /max Welcome.bat
  124. goto :exit
  125.  
  126. :exit
  127. exit